//获取应用实例
const app = getApp()

Page({
  data:{ 
    yingXingActive: false,
    gongTongActive: true,
    houJieActive: false,
    fuRongActive: false,
    xiangZhangActive: false,
    dongYuanActive: false,
    using: [{
      active: false
    },{
      active: true
    },{
      active: false
    },{
      active: false
    },{
      active: false
    },{
      active: false
    }]
  },
  toClickCollect: function(){
    wx.navigateTo({
      url: '../collect/collect',
    })
  },
  toClickPlace: function(event) {
    let id = event.currentTarget.id
    if(this.data.using[id-1].active === true) {
      wx.navigateTo({
        url: '../camera/camera?id=' + id,
      })
    }else{

    }
  }
})
